<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>userCenter</title>
    <link rel="stylesheet" href="../css/shoppingCart.css" type="text/css"></link>
    <link rel="stylesheet" href="../css/jquery.spinner.css" type="text/css"></link>
    <script src="../js/jquery-3.3.1.min.js"></script>
    <script src="../js/jquery.spinner.js"></script>
</head>
<body>

<div id="header">
    <div class="top">
        <#if user?exists>
            <div class="left">
                <input id="top_user_login_tag" value="${user.realname}" type="hidden">
                <a href="/loginOut">[退出登录]</a>
                <a href="#">
                    <span class="sp">新消息(<font>0</font>)</span>
                </a>
                <span class="sp userNickName" title="jd">${user.nickname}</span>
                <span class="sp">积分：<font class="myInteger">${user.myinteger}</font></span>
            </div>
        <#else>
            <div class="left">
                <a href="/login">请登录</a> <a href="/register">免费注册</a>
            </div>
        </#if>

        <div class="right">
            <a href="/">首页</a>
            <a href="/common/integralMall.html">积分商城</a>
            <a href="/school.htm">企业合作</a>
            <a href="/userCenter/person">我的易学</a>
            <#if countcart?exists>
                <a href="/userCenter/shoppingCart" class="nz_ts">购物车（
                    <span class="cart_top_num">${countcart}</span>）</a>
            <#else>
                <a href="/userCenter/shoppingCart" class="nz_ts">购物车（
                    <span class="cart_top_num">0</span>）</a>
            </#if>
            <a href="/userCenter/userCollection.html">我的收藏夹</a>
            <a href="http://wpa.qq.com/msgrd?v=3&amp;uin=2636862834&amp;site=qq&amp;menu=yes”"
               target="_blank">联系客服</a>
            <a id="tc" href="#">网站导航 </a>
            <a href="/common/help/help.html">帮助</a>
        </div>
    </div>
</div>

<div id="bottom">
    <div class="left">
        <a href="/"><img src="../images/logo.png"></a>
    </div>
    <div class="right">
        <form action="/search">
            <input type="text" class="search" id="queryKeysStr" value="" name="search">
            <input type="submit" value="搜索" class="buttom" id="queryAllButton">
        </form>

        <div class="right_bottom">
            <a href="/searchBypro?product=JAVA">JAVA</a>
            <a href="/searchBypro?product=CCIE">CCIE</a>
            <a href="/searchBypro?product=PS">PS</a>
            <a href="/searchBypro?product=C">C</a>
            <a href="/searchBypro?product=CCNA">CCNA</a>
            <a href="/searchBypro?product=OCA">OCA</a>
            <a href="/searchBypro?product=Android">Android</a>
            <a href="/searchBypro?product=HTML">HTML</a>
            <a href="/searchBypro?product=思科">思科</a>
        </div>
    </div>
</div>

<div id="nav">
    <ul class="menu1">
        <li class="now"><a href="/userCenter/person">我的易学</a></li>
        <li><a href="/userCenter/teacher.html">讲师中心</a></li>
        <li style="float: right;"><a href="/">返回首页</a></li>
    </ul>
</div>

<div id="main">
    <div class="left sideMenu">
        <ul>
            <li class="pic"><a href="/userCenter/person"><img
                            src="/images/defaultUserIco.jpg" height="150" width="151"></a></li>
            <li></li>
            <li>
                <h3>
                    <em></em>安全
                </h3>
                <div class="left_navi_div" style="">
                    <a href="/userCenter/index.html">账号设置</a> <a
                            href="/userCenter/person">个人资料</a>
                </div>
            </li>
            <li>
                <h3>
                    <em></em>资产
                </h3>
                <div class="left_navi_div" style="display: block;">
                    <a href="/userCenter/myRestDetail.html">余额明细</a> <a
                            href="/userCenter/queryIntegralDetail.html">我的积分</a> <a
                            href="/userCenter/myCard.html">我的礼券</a>
                </div>
            </li>
            <li>
                <h3 class="on">
                    <em></em>购物
                </h3>
                <div class="left_navi_div" style="display: block;">
                    <a class="now" href="/userCenter/shoppingCart">我的购物车</a> <a
                            href="/userCenter/purchasedGoodsList.html">我的课程</a> <a
                            href="/userCenter/myStudyApply.html">我的求学</a> <a
                            href="/userCenter/userCollection.html">我的收藏</a> <a
                            href="/userCenter/appraiseList.html">我的评价</a> <a
                            href="/userCenter/userViolationList.html">违规投诉</a>
                </div>
            </li>
        </ul>
    </div>

    <div class="right">
        <dl class="index">
            <dt>
                全部商品 (&nbsp;<font id="shoppingCart_sum">0</font>)<span>已选商品：<font
                            class="totalMoney">￥0.00</font><a
                            href="/userCenter/proOrder">结算</a></span>
            </dt>

            <dd class="title">
                <span class="check selectAll">
                    <input type="checkbox" class="select">全选
                </span>
                <span class="info">商品信息</span>
                <span class="price">单价（元）</span>
                <span class="num">数量</span>
                <span class="money">金额（元）</span>
                <span class="ope">操作</span>
            </dd>

            <dd class="title content">

                <#if carts?exists>
                    <#list carts as cart>
                        <ul>
                            <li id="lineItem_168" class="lineItem">
                                <span class="check">
                                    <input type="checkbox" class="select_item">
                                </span>
                                <span class="info">
                                    <a href="/product?productID=${cart.id}">
                                        <img src="${cart.image}" height="80" width="80">
                                    </a>
                                    <font><a href="/product?productID=${cart.id}">${cart.name}</a></font>
                                    <font class="font1">类型：${cart.product}<br>时间：${cart.classtime?string("yyyy-MM-dd")}</font>
                                </span>
                                <span class="price">${cart.price?c}</span>
                                <input type="hidden" name="productid" class="productid" value="${cart.id}">
                                <input type="hidden" name="productprice" class="productprice" value="${cart.price?c}">
                                <input type="hidden" name="productcount" class="productcount" value="${cart.count}">
                                <span class="num mun">
                                    <input type="text" id="goodsSum" class="cartGoodsSum spinnerExample value"
                                           value="${cart.count}" data="${cart.count}" maxlength="2">
                                </span>
                                <span class="money">2500.00</span>
                                <span class="ope">
                                    <a href="javascript:void(0);" class="delete_item">删除</a>
                                    <br>
                                    <a href="javascript:void(0);" id="a_collection">移入收藏夹</a>
                                </span>
                            </li>
                        </ul>
                    </#list>
                </#if>
                <script type="text/javascript">
                    $(".spinnerExample").spinner({});
                </script>
            </dd>
            <dd class="jiesuan">
                <a class="batch_ope" id="delete_all" href="javascript:void(0);" title="批量删除">删除</a>
                <a class="batch_ope" href="javascript:addCollectionAll();void(0)" title="批量加入收藏夹">加入收藏夹</a>
                <span>已选商品：<font class="totalMoney">￥0.00</font>
                    <a id="account_good" href="javascript:void(0);">结算</a>
                </span>
            </dd>

            <dd></dd>

        </dl>
    </div>

</div>

<script src="../js/userCenter.js"></script>
<script src="../js/shoppingCart.js"></script>
</body>
</html>